<template>
  <div class="category">
    <h3>{{ title }}分类</h3>
    <!-- 默认插槽，放置好位置等待放入组件 -->
    <slot name="center"></slot>
    <slot name="footer"></slot>
  </div>
</template>

<script>
export default {
  name: 'Category',
  props: ['title'],
}
</script>

<style>
.category {
  background-color: skyblue;
  width: 200px;
  height: 300px;
}

h3 {
  background-color: orange;
  text-align: center;
}
</style>
